replace every element with the least greater element on its right leetcode